package com.cloud.common.enums;

/**
 * 菜单属性枚举
 *
 * @author yzj
 */
public enum MenuType {

    YES_FRAME("0", "是否菜单外链（是）"),
    NO_FRAME("1", "是否菜单外链（否）"),

    TYPE_DIR("M", "菜单类型（目录）"),
    TYPE_MENU("C", "菜单类型（菜单）"),
    TYPE_BUTTON("F", "菜单类型（按钮）"),

    MENU_HIDE("1", "菜单状态（隐藏）"),
    MENU_SHOW("0", "菜单状态（显示）"),

    APPLY_HIDE("1", "移动端应用状态（隐藏）"),
    APPLY_SHOW("0", "移动端应用状态（显示）"),

    LAYOUT("Layout", "菜单Layout组件标识"),
    PARENT_VIEW("ParentView", "菜单ParentView组件标识");

    private final String code;
    private final String info;

    MenuType(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }
}
